package com.paziy.card_games.cards;

/**
 * Created with IntelliJ IDEA.
 * User: paziy
 * Date: 05.02.13
 * Time: 18:40
 * To change this template use File | Settings | File Templates.
 */


class SimpleCard implements Card {

    private final Suit suit;
    private final Nominal nominal;

    SimpleCard(Suit suit, Nominal nominal) {
        this.nominal = nominal;
        this.suit = suit;
    }

    public Nominal getNominal() {
        return nominal;
    }

    public Suit getSuit() {
        return suit;
    }

    @Override
    public String toString() {
        return nominal.getShortName() + suit.getSymbol();
    }

}